package com.lplb.api.admin.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lplb.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author ws
 * @date 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_admin_dict")
@ApiModel(value="AdminDict对象", description="字典表")
public class AdminDict extends BaseEntity{

    private static final long serialVersionUID = 1L;
   /**
    * 字典父级Id (自关联)
    */
    private String pid;
   /**
    * 字典code
    */
    private String code;
   /**
    * 字典名称
    */
    private String name;
   /**
    * 字典描叙
    */
    @TableField("`desc`")
    private String desc;
   /**
    * 字典排序
    */
    private Integer sort;
}
